Skip to content

refactor: modularize userscript source and add build verification#2

Merged
ImXiangYu merged 3 commits intomainfrom
dev
Feb 25, 2026
Merged

refactor: modularize userscript source and add build verification#2
ImXiangYu merged 3 commits intomainfrom
dev

Conversation

@ImXiangYu
Copy link
Owner

Summary

  • refactor the userscript into src/ modules (constants, config, i18n, styles, navigation, settings-panel, main)
  • add an esbuild pipeline (scripts/build.mjs) and userscript header template (scripts/userscript-header.txt)
  • keep release artifact path unchanged: better-github-nav.user.js
  • add CI workflow to verify generated artifact consistency (Verify Userscript Build)
  • keep README user-focused (remove dev/build usage sections)

Why

  • improve maintainability and readability without changing the published userscript entry URL
  • prevent source/artifact drift in future releases

Validation

  • ran npm run build
  • ran node --check better-github-nav.user.js
  • confirmed version sync in output (@version and SCRIPT_VERSION)

@ImXiangYu ImXiangYu merged commit e55922c into main Feb 25, 2026
2 checks passed
@ImXiangYu ImXiangYu deleted the dev branch February 25, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant